package com.mxdx.edu.service;

import com.mxdx.edu.model.ExamStudentRecord;
import com.mxdx.edu.model.StudentScore;

import java.util.List;
import java.util.Map;

public interface IExamLibraryService {

    //获取考试标题
    Map<String, Object> findExamTitleByMap(Map<String, Object> param);

    //根据课程id获取考试信息
    Map<String, Object> findExamTitleByCourseId(String courseId);

    List<Map<String,Object>> findExamSubjectByExamId(String examId);

    List<Map<String,Object>> findExamMainByExamId(String studentId,String courseId,String semesterId,String examId);

    Map<String,Object> findExamMainTestByMap(String testId);

    List<Map<String,Object>> findExamOptionByTestId(List<String> testIdList);

    List<Map<String,Object>> findExamAnswerByTestId(List<String> testIdList);

    List<Map<String,Object>> findExamExplainByTestId(List<String> testIdList);

    //学生答题列表
    List<ExamStudentRecord> findExamStudentRecordByMap(String studentId,String courseId,String examId);

    int findExamStudentCountByMap(String studentId,String courseId,String examId);

    String findExamStudentTestIdsByMap(String studentId,String courseId,String examId);

    //学生答题保存
    int examStudentSave(ExamStudentRecord examStudentRecord);

    //非主观题分数
    double findNotSubjectiveScore(String examId);

    int examStudentUpdate(ExamStudentRecord examStudentRecord);

    int examStudentDelete(String studentId,String courseId,String examId,String testId);

    //学生成绩

    StudentScore findStudentScoreByMap(String studentId,String courseId,String semesterId);

    int studentScoreSave(StudentScore studentScore);

    int studentScoreUpdate(StudentScore studentScore);

}
